From: Jonas Dreßler Date: Fri, 24 Jun 2022 11:11:31 +0000 (+0200) Subject: appDisplay: Consider drop targets on !currentPage as invalid X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~405^2^2~131 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=a69d99527dedfab409fe7f14f3502b18edd578ad;p=gnome-shell.git appDisplay: Consider drop targets on !currentPage as invalid The iconGrid's getDropTarget() API supports dropping items to adjacent pages just fine, but in the AppDisplay, we clip the grid and don't show those adjacent pages. That doesn't stop getDropTarget() from picking drop targets which are on adjacent pages though, so we need to filter those out in the layer above. Part-of: --- diff --git a/js/ui/appDisplay.js b/js/ui/appDisplay.js index 5008130ad..0d0b1e56a 100644 --- a/js/ui/appDisplay.js +++ b/js/ui/appDisplay.js @@ -798,6 +798,7 @@ var BaseAppView = GObject.registerClass({ // Dragging over invalid parts of the grid cancels the timeout if (item === source || + page !== this._grid.currentPage || dragLocation === IconGrid.DragLocation.INVALID || dragLocation === IconGrid.DragLocation.ON_ICON) { this._removeDelayedMove();